package net.xo68.destiny.manager.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;



/** 
 * JobInstance 实体
 * @author wuxie(16349023@qq.com)
 * @date 2020年12月21日 21:43:52
 *
 */
@ApiModel("JobInstance 实体")
public class JobInstance implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	/**
	 * 任务实例名称
	 */
	@ApiModelProperty("任务实例名称")
	private Long instanceId;
	@ApiModelProperty("job_id")
	private Long jobId;
	/**
	 * 工作组英文名称
	 */
	@ApiModelProperty("工作组英文名称")
	private String workGroup;
	/**
	 * 任务处理器英文名称
	 */
	@ApiModelProperty("任务处理器英文名称")
	private String jobHandler;
	/**
	 * 调度机器
	 */
	@ApiModelProperty("调度机器")
	private String schedHost;
	/**
	 * 调度时间
	 */
	@ApiModelProperty("调度时间")
	private Date schedTime;
	/**
	 * 任务计划执行worker
	 */
	@ApiModelProperty("任务计划执行worker")
	private String firedHost;
	/**
	 * 计划触发时间
	 */
	@ApiModelProperty("计划触发时间")
	private Date fireTime;
	/**
	 * 开始时间
	 */
	@ApiModelProperty("开始时间")
	private Date startTime;
	/**
	 * 结束时间
	 */
	@ApiModelProperty("结束时间")
	private Date endTime;
	/**
	 * 实例状态：0-初始状态，1-调度成功，2-调度失败，3-执行成功，4-执行失败
	 */
	@ApiModelProperty("实例状态：0-初始状态，1-调度成功，2-调度失败，3-执行成功，4-执行失败")
	private Byte instanceState;
	/**
	 * 重试次数
	 */
	@ApiModelProperty("重试次数")
	private Integer retryCount;
	
	@Override
	public String toString(){
		return "instanceId:"+this.instanceId+","+"jobId:"+this.jobId+","+"workGroupName:"+this.workGroup+","+"handlerName:"+this.jobHandler+","+"schedHost:"+this.schedHost+","+"schedTime:"+this.schedTime+","+"firedHost:"+this.firedHost+","+"fireTime:"+this.fireTime+","+"startTime:"+this.startTime+","+"endTime:"+this.endTime+","+"instanceState:"+this.instanceState+","+"retryCount:"+this.retryCount;
	}
	

	public Long getInstanceId() {
		return this.instanceId;
	}
	public void setInstanceId(Long value) {
		this.instanceId = value;
	}	

	public Long getJobId() {
		return this.jobId;
	}
	public void setJobId(Long value) {
		this.jobId = value;
	}	

	public String getWorkGroup() {
		return this.workGroup;
	}
	public void setWorkGroup(String value) {
		this.workGroup = value;
	}	

	public String getJobHandler() {
		return this.jobHandler;
	}
	public void setJobHandler(String value) {
		this.jobHandler = value;
	}	

	public String getSchedHost() {
		return this.schedHost;
	}
	public void setSchedHost(String value) {
		this.schedHost = value;
	}	

	public Date getSchedTime() {
		return this.schedTime;
	}
	public void setSchedTime(Date value) {
		this.schedTime = value;
	}	

	public String getFiredHost() {
		return this.firedHost;
	}
	public void setFiredHost(String value) {
		this.firedHost = value;
	}	

	public Date getFireTime() {
		return this.fireTime;
	}
	public void setFireTime(Date value) {
		this.fireTime = value;
	}	

	public Date getStartTime() {
		return this.startTime;
	}
	public void setStartTime(Date value) {
		this.startTime = value;
	}	

	public Date getEndTime() {
		return this.endTime;
	}
	public void setEndTime(Date value) {
		this.endTime = value;
	}	

	public Byte getInstanceState() {
		return this.instanceState;
	}
	public void setInstanceState(Byte value) {
		this.instanceState = value;
	}	

	public Integer getRetryCount() {
		return this.retryCount;
	}
	public void setRetryCount(Integer value) {
		this.retryCount = value;
	}	
}